﻿<%--<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PackageInfoQuery.aspx.cs" Inherits="ReportingView_PackageInfoQuery" %>--%>

<%@ Page Title="包装数据查询" Language="C#" MasterPageFile="~/site.master"  AutoEventWireup="true" CodeFile="PackageInfoQuery.aspx.cs" Inherits="ReportingView_PackageInfoQuery" %>
<asp:Content ID="Content1" ContentPlaceHolderID="headContent" Runat="Server">
    <style type="text/css">
          .mr
       {
           margin-right:549px   /*右边距*/
       } 
            .breadcrumbcss
       {
           width:1054px;
           margin:20px auto;
       }
            .foodermargin
    {     
    margin:30px auto 0 auto;
     }
            .inputWidth
            {
                width:140px;
            }
        #formdiv {
            height: 31px;
            width: 1111px;
        }
    </style>
    <link href="../CSS/bootstrap.css" rel="stylesheet" />
    <link href="../CSS/bootstrap.min.css" rel="stylesheet" />
    <link href="../CSS/allcommonstyle.css" rel="stylesheet" />
      <script src="../js/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script src="../js/bootstrap.min.js" type="text/javascript"></script>
    <script src="../js/my97datepicker/WdatePicker.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <div class="breadcrumbcss">
      <ol class="breadcrumb ">           
            <li><a href="../MainHtml.aspx">首页</a></li>
            <li><a href="searchMainHtml.aspx">查询</a></li>	
		     <li><a href="PackageInfoQuery.aspx" class="active">包装数据查询</a></li>
        </ol>
    </div>
         <h4 class="headtitle">包装数据查询</h4>

  
   <div class="radio" style="margin:10px 0px 10px 390px;">      <asp:RadioButton ID="RadioButton1" runat="server" Text="请选择KccSN:" Checked="True" GroupName="select" OnCheckedChanged="RadioButton1_CheckedChanged" /></div>
     <div id="formdiv4"  class="form-horizontal">              
                <div class="form-group mb"  style=" margin-left:385px;width: 350px;">             
                 <label  class="col-sm-2 control-label" style="width:127px">请输入整机KccSN:</label>                
                   <asp:TextBox ID="TextBox3" runat="server" Width="138px"></asp:TextBox> 
             
           </div>    
      </div> 
     <div class="radio" style="margin:10px 0px 10px 390px;">  <asp:RadioButton ID="RadioButton2" runat="server" Text="选择类型和时间：" GroupName="select" OnCheckedChanged="RadioButton2_CheckedChanged" />  </div>
         <div id="formdiv1"  class="form-horizontal">
               <div style="margin:10px auto; width:1109px;clear:both;" class="form-group">
                        <label class="col-sm-2 control-label" style="margin-left:193px"  >请选择查询的类型：</label>   
                            <asp:DropDownList ID="DropDownList1" runat="server" Width="80px">
                            <asp:ListItem>RRH</asp:ListItem>
                            <asp:ListItem>DM1</asp:ListItem>
                            <asp:ListItem>DM2</asp:ListItem>
                </asp:DropDownList>
                  </div>
     </div>
   
 
     <div style="margin:10px auto;width:1121px; height: 31px;"> 
         
      
        <div id="formdiv"  class="form-horizontal">
           
                 <div class="form-group" style="float:left;margin-left:230px; width: 253px;">
                         <div id="UpdatePanel1">
                         
                起始时间：<input type="text"  class="inputWidth" runat="server" id="TextBox1"
                    onfocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})"/>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="TextBox1" ErrorMessage="*" ValidationGroup="VGroup1"></asp:RequiredFieldValidator>
                 </div>
                       </div>
              &nbsp;
            <div class="form-group"style="float:left;margin-right:20px">
                终止时间：<input type="text"   class="inputWidth" runat="server" id="TextBox2" 
                    onfocus="WdatePicker({startDate:'%y-%M-%d 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})"/>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="TextBox2" ErrorMessage="*" ValidationGroup="VGroup1"></asp:RequiredFieldValidator> 
           </div>
 
           <div style=" float:left;margin-right:10px; width: 86px;">
            <asp:Button ID="Check" runat="server"  Text="查  询" OnClick="Check_Click" CssClass="bluebuttoncss" Height="26px" Width="76px" />
          </div>  
          <div style=" float:right;margin-right:110px; width: 100px;">
            <asp:Button ID="Button1" runat="server"  Text="返  回" OnClick="Button1_Click" CssClass="bluebuttoncss" Height="26px" Width="76px" />
          </div>    
      </div>
         
    </div>
        
   <div style="text-align:center;margin:40px auto 10px auto;width:1217px;">
      <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" EnableModelValidation="True" HorizontalAlign="Center" Width="1186px" AllowPaging="True" OnRowDataBound="GridView1_RowDataBound">
          <Columns>
              <asp:BoundField DataField="RecordTime" HeaderText="时间" >
              <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
              </asp:BoundField>
              <asp:BoundField DataField="KCCSN1" HeaderText="腔体条码" >
              <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
              </asp:BoundField>
              <asp:BoundField DataField="KCCSN2" >
              <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
              </asp:BoundField>
              <asp:BoundField DataField="PEC" HeaderText="PEC" >
              <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
              </asp:BoundField>
              <asp:BoundField DataField="CPC" HeaderText="CPC" >
              <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
              </asp:BoundField>
              <asp:BoundField DataField="KCCSN" HeaderText="Serial" >
              <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
              </asp:BoundField>
              <asp:BoundField DataField="NetWeight" HeaderText="Net Weight" >
              <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
              </asp:BoundField>
              <asp:BoundField DataField="RLS" HeaderText="RLS" >
              <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
              </asp:BoundField>
              <asp:BoundField DataField="QTY" HeaderText="QTY" >
              <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
              </asp:BoundField>
              <asp:BoundField DataField="CountryOrigin" HeaderText="Country of Origin" >
              <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
              </asp:BoundField>
              <asp:BoundField DataField="WeekNum" HeaderText="周次" >
              <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
              </asp:BoundField>
              <asp:BoundField DataField="QCUser" HeaderText="质检员" >
              <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
              </asp:BoundField>
              <asp:BoundField DataField="PackageUser" HeaderText="包装" >
              <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
              </asp:BoundField>
              <asp:BoundField DataField="Remark" HeaderText="备注" >
              <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
              </asp:BoundField>
              <asp:BoundField DataField="ProductPackageStatus" HeaderText="产品状态" />
          </Columns>
          <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
      </asp:GridView>
  </div> 
            <div id="formdiv2"  class="form-horizontal" >
        <div style="margin:33px auto auto auto;text-align:center; clear: both;width:1100px; height: 50px;" class="form-group"> 
          <asp:LinkButton ID="lnkbtnFrist" runat="server" OnClick="lnkbtnFrist_Click">首页</asp:LinkButton> 
        <asp:LinkButton ID="lnkbtnPre" runat="server" OnClick="lnkbtnPre_Click">上一页</asp:LinkButton> 
        <asp:Label ID="lblCurrentPage" runat="server"></asp:Label> 
        <asp:LinkButton ID="lnkbtnNext" runat="server" OnClick="lnkbtnNext_Click">下一页</asp:LinkButton> 
        <asp:LinkButton ID="lnkbtnLast" runat="server" OnClick="lnkbtnLast_Click">尾页</asp:LinkButton> 
跳转到第<asp:DropDownList ID="ddlCurrentPage" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" Width="55px"> 
        </asp:DropDownList>页
        </div>
               </div>
     <div style="margin: 6px auto auto auto; clear: both;width:1100px; height: 50px;font-family:微软雅黑;text-align:center;line-height:50px;" > 
        <asp:Button ID="ExportToExcel" runat="server" Text="导   出   到   Excel" OnClick="Button3_Click" Width="388px" Visible="False"  CssClass="bluebuttoncss" Height="30px"/>
        </div>
      <div id="fooder" class="foodercl foodermargin" >
      
       Copyright © 2015-2016 摩比天线（深圳）技术有限公司版权所有

     </div>  
 </asp:Content>
